import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';

class AppUtils{
  static AppUtils? _appUtils;
  static AppUtils? getAppUtils(){
    _appUtils??=AppUtils();
    return _appUtils;
  }
  showLoading(){
    BotToast.showWidget(toastBuilder:(context) {
      return const Center(
        child: CircularProgressIndicator(),
        );
    });
  }
  closeLoading(){
    BotToast.removeAll();
  }

}